<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2015-11-04 15:21:51, compiled from ../app/web/template/login/login.htm */ ?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户生态维护系统V1.0</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td height="418" ><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#00B000">
      <form name="login" method="post" action="<?php  echo InitPHP::getConfig('url').'login/index/login';  ?>"  id="login" >
        <tr>
          <td height="68" bgcolor="#FFFFFF"><div align="center" class="sys_title">客户生态链维护系统V1.0</div></td>
        </tr>
        <tr>
          <td height="10">&nbsp;</td>
        </tr>
        <tr>
        <td height="40"><div align="center"><span class="sys_font">帐号：</span>
          <input type="text" name="user_name" id="user_name" class="sys_input"/>
        </div></td>
      </tr>
      <tr>
        <td height="40"><div align="center"><span class="sys_font">密码：</span>
          <input type="password" name="password" id="password" class="sys_input"/>
        </div></td>
      </tr>
      <tr>
        <td height="60"><div align="center">
          <input type="submit" name="button" id="button" value="登 录" class="sys_button"/>
        </div></td>
      </tr>
      </form>
    </table></td>
  </tr>
</table>
<script src="//cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js"></script>
<script type="text/javascript">
	var loginForm = function (id) {
		 $('#' + id).ajaxForm(function(result) {
		 		result = eval('(' + result + ')'); 
		 		//alert(result);	
	            if (result.status == 1) {
					    location.href = result.url;	
                   } else {
                	   		alert("登陆失败："+result.msg)	            	
				}
	     });
	}
	$(document).ready(function() {	
		loginForm('login');	
	});
</script>
</body>

</html>
	 




